package com.zhang.config;

import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;

@Configuration
public class DruidConfig {
    @PostConstruct
    public void setUsePingMethod(){
        System.setProperty("druid.mysql.usePingMethod", "false");
    }
}